package com.ny.service;

import com.ny.entity.User;

import java.util.List;

public interface UserService {
    int addUser(User user);
    public User findUser(String username,String password);
    public User findUserByEmail(String email);
    public int updatePassword( String password,  String email);
    public void sendToEmail(String toEmail);

    void sendEmail(String toEmail);
    public boolean checkCode(String toEmail, String code);
}
